package com.michale.common.properties;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author Michale
 * @apiNote 读取mybatis扫描包
 */
@Data
@Component
@ConfigurationProperties(prefix = "mybatis")
public class MybatisProperties {

    @ApiModelProperty("搜索指定包别名")
    private String typeAliasesPackage;

    @ApiModelProperty("配置mapper的扫描，找到所有的mapper.xml映射文件")
    private String mapperLocations;

    @ApiModelProperty("加载全局的配置文件")
    private String configLocation;
}
